package com.wx.wxapp.controller;

import com.wx.wxapp.entity.Disease;
import com.wx.wxapp.service.DiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DiseaseController {
    @Autowired
    private DiseaseService diseaseService;


    //获取用户关于疾病治疗的历史发帖记录
    @RequestMapping(value = "/getDiseaseCards",method = RequestMethod.GET)
    public List<Disease> GetDiseaseCards(@RequestParam("openid")String openid){
        return diseaseService.getDiseaseCard(openid);
    }

}
